home *** CD-ROM | disk | FTP | other *** search
/ PC Team 23 / HS_Tuning.iso / Optimisation / JV16 Powertools 1.6 / Setup.exe / {app} / Documentation / Example Scripts / 3. More complex / Variables with a loop.jvb < prev   
Encoding:
Text File  |  2003-07-09  |  374 b   |  19 lines

  1. Console;
  2.  
  3. //This means that we define a variable called "x" and set it's value to "0".
  4. Define x 0;
  5. Define z;
  6.  
  7. z := "6";
  8.  
  9. //The loop goes from 0 to 6 but it lists only numbers 1 and 2.
  10. //Yeah, I know, it's a stupid example, you could do the same with just one for loop...
  11. For (i := $x to $z, +1)
  12. [
  13.  
  14.  If ($i > 0) 
  15.  [
  16.   if ($i <= 2) [ PrintMessage $i; ]
  17.  ]
  18.  
  19. ]